package com.bemes.ecmn.model;

public class ECMNIntDriver extends ECMNLinkableObject{
	
	private ECMNGenericObject m_inputChild;
	
	public boolean addInputChild(ECMNGenericObject input)
	{
		if(input != null)
		{
			m_inputChild = input;
			return true;
		}
		
		return false;
	}
	
	public ECMNIntDriver()
	{
		m_inputChild = null;
	}
	
	@Override
	public int getAmountOfEquipment() {
		if(m_inputChild != null)
		{
			return m_inputChild.getAmountOfEquipment();
		}
		else
		{
			return 0;
		}
	}

	@Override
	public ECMNEnum getObjectType() {
		return (ECMNEnum.INT_DRIVER);
	}

}
